<?php

return [
    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
    'components' => [
//        'cache' => [
//            'class' => 'yii\redis\Cache',
//            'redis' => [
//                'class' => 'yii\redis\Connection',
//                'hostname' => 'test.redis.miaokecloud.com',
//                'port' => 6379,
//                'database' => 0
//            ],
//        ],
        'cache' => [
            'class' => 'yii\redis\Cache',
            'redis' => [
                'class' => 'yii\redis\Connection',
                'hostname' => 'localhost',
                'port' => 6379,
                'database' => 0
            ],
        ],
        'db' => [
            'class' => 'yii\db\Connection',
//            'dsn' => 'mysql:host=182.61.161.51;port=3306;dbname=craftsman',
//            'username' => 'root',
//            'password' => 'chuangjiang123##***',
//            'dsn' => 'mysql:host=182.61.186.106;port=3306;dbname=craftsman',
//            'username' => 'junfen',
//            'password' => 'junfen234',
            'dsn' => 'mysql:host=mysql56.rdsmfmwyp47yflj.rds.hkg.baidubce.com;port=3306;dbname=craftsman',
            'username' => 'craftman_root',
            'password' => 'txl_craftman456',
            'charset' => 'utf8mb4',
        ],

        "curl"  =>  [
            "class" =>  "common\component\LComponentCurl",
        ],
    ]
];
